package com.zhongkun.datahome.service.domain;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * 客户家庭对象 customer_family
 * 
 * @author ruoyi
 * @date 2025-04-14
 */
@Data
public class CustomerFamily extends BaseEntity {
    @ApiModelProperty("家庭名称")
    private String familyName;

    @ApiModelProperty("家庭业主id")
    private Long ownerCustomerId;

    public static CustomerFamily of(String familyName, Long ownerCustomerId) {
        CustomerFamily family = new CustomerFamily();
        family.setFamilyName(familyName);
        family.setOwnerCustomerId(ownerCustomerId);
        return family;
    }
}
